package com.baike.feign;

import com.baike.data.Result;
import com.baike.em.ConstantEnum;
import com.baike.entity.TbLesson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "baike-education-lesson-service")
public interface TbDiscountsFeign {

    @PostMapping("/lessonLabelController")
    Result postLess(@RequestBody TbLesson lesson);

    @DeleteMapping("/lessonLabelController")
    Result delLess(@RequestParam("ids") Long[] ids);

    @PostMapping("/studentHave")
    Result<ConstantEnum> postHave(@RequestParam("sId")Long sId , @RequestParam("cId")Long cId);

    @DeleteMapping("/studentHave")
    Result<ConstantEnum> delHave(@RequestParam("sId")Long sId , @RequestParam("cIds")Long[] cIds);


}